<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>无标题文档</title>
        <script data-main="../js/main" crossorigin="anonymous"
            integrity="sha384-WKPjHIEhBzyEuCp8//j0gXBM/TP1OwKdWMPBRFZ6q8g66Pce1n6o0M/q4duEXrmA"
            src="https://lib.baomitu.com/require.js/2.3.6/require.js"></script>
        <script src="./globalStatus.js" type="text/javascript" charset="utf-8"></script>
    </head>
    <body>
        <div class="container main">
            <div>
                <h3>磁盘使用情况</h3>
            </div>
            <div class="row disk-status">
                <div class="col-lg-3 col-md-4 col-sm-6" v-for="disk in disks">
                    <div>
                        <!--第二层div指这个-->
                        <h4>{{ disk.name }}</h4>
                        <div class="progress">
                            <div :class='"progress-bar bg-" + disk.color'
                                :style='"width: " + (100 - disk.percent) + "%"'>
                                <span class="sr-only">{{ 100 - disk.percent }}%</span>
                            </div>
                        </div>
                        <div class="row info">
                            <div class="col-sm-6">
                                <p :class='"bg-" + disk.color'>可用 {{ disk.usable }}</p>
                            </div>
                            <div class="col-sm-6">
                                <p class="r">{{ disk.used }} 已用</p>
                            </div>
                            <div class="col-sm-6">
                                <p>空闲 {{ disk.free }}</p>
                            </div>
                            <div class="col-sm-6">
                                <p class="r">{{ disk.total }} 总计</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
